
<!doctype html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width">

	<title>Class Opencart\System\Library\Image | OpenCart API API</title>
	<link rel="stylesheet" href="http://localhost\opencart-master/docs/api/assets/main.css">
	<script src="http://localhost\opencart-master/docs/api/assets/main.js" defer></script>
</head>

<body class="layout">
	<div class="layout-aside">
	<div class="menu">
			<div class="menu-section">
				<h3>Namespaces</h3>
	<ul>
			<li class="menuGroup-item active">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.html">Opencart</a>
	<ul>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.html">Admin</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.Catalog.html">Catalog</a>
			</li>
			<li class="menuGroup-item active">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.html">System</a>
	<ul>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.Engine.html">Engine</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.Helper.html">Helper</a>
			</li>
			<li class="menuGroup-item active">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.html">Library</a>
	<ul>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.Cache.html">Cache</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.Cart.html">Cart</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.DB.html">DB</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.Mail.html">Mail</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.Session.html">Session</a>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.Template.html">Template</a>
			</li>
	</ul>
			</li>
	</ul>
			</li>
	</ul>
			</li>
			<li class="menuGroup-item">
				<a href="http://localhost\opencart-master/docs/api/namespace-none.html">none</a>
			</li>
	</ul>
			</div>

		<div class="menu-section">
			<h3>Classes</h3>
			<ul>
					<li>
						<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Cache.html">
							Cache
						</a>
					</li>
					<li>
						<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.DB.html">
							DB
						</a>
					</li>
					<li>
						<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Document.html">
							Document
						</a>
					</li>
					<li class="active">
						<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Image.html">
							Image
						</a>
					</li>
					<li>
						<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Language.html">
							Language
						</a>
					</li>
					<li>
						<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Log.html">
							Log
						</a>
					</li>
					<li>
						<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Mail.html">
							Mail
						</a>
					</li>
					<li>
						<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Request.html">
							Request
						</a>
					</li>
					<li>
						<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Response.html">
							Response
						</a>
					</li>
					<li>
						<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Session.html">
							Session
						</a>
					</li>
					<li>
						<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Template.html">
							Template
						</a>
					</li>
					<li>
						<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Url.html">
							Url
						</a>
					</li>
			</ul>
		</div>
	</div>
	</div>

	<div class="layout-main">
		<div class="layout-navbar">
	<nav class="navbar">
		<div class="navbar-left">
			<ul class="navbar-links">
				<li>
					<a href="http://localhost\opencart-master/docs/api/index.html">Overview</a>
				</li>
				<li>
					
						<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.html">Namespace</a>
					
				</li>
<li class="active"><a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Image.html">Class</a></li>				<li>
					<a href="http://localhost\opencart-master/docs/api/tree.html">Tree</a>
				</li>
			</ul>
		</div>
		<div class="navbar-right">
	<div class="search" data-elements="http://localhost\opencart-master/docs/api/assets/elements.js">
		<input class="search-input" placeholder="Search class, function or namespace" autofocus>
		<ul class="search-results"></ul>
	</div>
		</div>
	</nav>
		</div>

		<div class="layout-content">
		<h1>
			Class <a href="http://localhost\opencart-master/docs/api/namespace-Opencart.html">Opencart</a>\<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.html">System</a>\<a href="http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.html">Library</a>\<a href="http://localhost\opencart-master/docs/api/Opencart.System.Library.Image.html">Image</a>
		</h1>


	<table class="classLikeSignatureTable">




	</table>
		<div class="classLikeDescription">
	<div class="description"><p>Class Image</p>
</div>
		</div>


		<div class="classLikeSection">
			<b>Located at</b> <a href="http://localhost\opencart-master/docs/api/source-system.library.image.html#15" title="Go to source code">system\library\image.php</a><br>
		</div>



		<table class="table" id="methods">
			<tr>
				<th class="table-heading sortable" colspan="3" title="Switch between natural and alphabetical order">Methods</th>
			</tr>

	<tr class="expandable collapsed" data-order="__construct" id="___construct">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-system.library.image.html#41-75" title="Go to source code">__construct</a>(<span>string <var>$file</var></span>)</code>


	<div class="expandable-collapsedView">
		<p>Constructor</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>Constructor</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#___construct">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="getFile" id="_getFile">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-system.library.image.html#77-84" title="Go to source code">getFile</a>(): string</code>


	<div class="expandable-collapsedView">
		<p>getFile</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>getFile</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_getFile">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="getImage" id="_getImage">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-system.library.image.html#86-93" title="Go to source code">getImage</a>(): mixed</code>


	<div class="expandable-collapsedView">
		<p>getImage</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>getImage</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_getImage">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="getWidth" id="_getWidth">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-system.library.image.html#95-102" title="Go to source code">getWidth</a>(): int</code>


	<div class="expandable-collapsedView">
		<p>getWidth</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>getWidth</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_getWidth">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="getHeight" id="_getHeight">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-system.library.image.html#104-111" title="Go to source code">getHeight</a>(): int</code>


	<div class="expandable-collapsedView">
		<p>getHeight</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>getHeight</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_getHeight">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="getBits" id="_getBits">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-system.library.image.html#113-120" title="Go to source code">getBits</a>(): string</code>


	<div class="expandable-collapsedView">
		<p>getBits</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>getBits</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_getBits">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="getMime" id="_getMime">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-system.library.image.html#122-129" title="Go to source code">getMime</a>(): string</code>


	<div class="expandable-collapsedView">
		<p>getMime</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>getMime</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_getMime">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="save" id="_save">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-system.library.image.html#131-157" title="Go to source code">save</a>(<span>string <var>$file</var></span>, <span>int <var>$quality</var> = <span class="php-num">90</span></span>): void</code>


	<div class="expandable-collapsedView">
		<p>Save</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>Save</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_save">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="resize" id="_resize">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-system.library.image.html#159-225" title="Go to source code">resize</a>(<span>int <var>$width</var> = <span class="php-num">0</span></span>, <span>int <var>$height</var> = <span class="php-num">0</span></span>, <span>string <var>$default</var> = <span class="php-str">''</span></span>): void</code>


	<div class="expandable-collapsedView">
		<p>Resize</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>Resize</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_resize">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="watermark" id="_watermark">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-system.library.image.html#227-284" title="Go to source code">watermark</a>(<span><b><span class="active" title="Opencart\System\Library\Image">self</span></b> <var>$watermark</var></span>, <span>string <var>$position</var> = <span class="php-str">'bottomright'</span></span>): void</code>


	<div class="expandable-collapsedView">
		<p>Watermark</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>Watermark</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_watermark">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="crop" id="_crop">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-system.library.image.html#286-305" title="Go to source code">crop</a>(<span>int <var>$top_x</var></span>, <span>int <var>$top_y</var></span>, <span>int <var>$bottom_x</var></span>, <span>int <var>$bottom_y</var></span>): void</code>


	<div class="expandable-collapsedView">
		<p>Crop</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>Crop</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_crop">#</a>
		</td>
	</tr>
	<tr class="expandable collapsed" data-order="rotate" id="_rotate">
			<td class="table-cell table-shrink">
				<code class="nowrap">
					
	public
					
					
				</code>
			</td>

			<td class="table-cell">
				<code><a href="http://localhost\opencart-master/docs/api/source-system.library.image.html#307-322" title="Go to source code">rotate</a>(<span>int <var>$degree</var></span>, <span>string <var>$color</var> = <span class="php-str">'FFFFFF'</span></span>): void</code>


	<div class="expandable-collapsedView">
		<p>Rotate</p>

	</div>

	<div class="expandable-expandedView">
	<div class="description"><p>Rotate</p>
</div>




	</div>
			</td>
		<td class="table-anchor">
			<a href="#_rotate">#</a>
		</td>
	</tr>
		</table>








		</div>

		<div class="layout-footer">
			OpenCart API API documentation generated by <a href="https://www.apigen.org">ApiGen dev-master</a>
		</div>
	</div>

	<div class="layout-rest">
		<div class="navbar"></div>
	</div>
</body>
</html>
